const successData = (data) => {
    return {code: 0, data, msg: 'success'};
}

const errorData = (data) => {
    return {code: 1, data, msg: 'error'};
}

module.exports = {
    successData,
    errorData
}